@import '../../style/_variables.less';

.mooli-image-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none !important;
  .mooli-image {
    min-width: 100%;
  }
  .mooli-swiper {
    width: 100%;
    height: 100%;
    &--container {
      width: 100%;
      height: 100%;
    }
  }
  &--index {
    position: fixed;
    top: @padding-md;
    left: 50%;
    color: @image-preview-index-text-color;
    font-size: @image-preview-index-font-size;
    line-height: @image-preview-index-line-height;
    text-shadow: @image-preview-index-text-shadow;
    transform: translate(-50%, 0);
  }

  &--overlay {
    background-color: @image-preview-overlay-background-color;
  }

  &--close-icon {
    position: absolute;
    z-index: @image-preview-close-icon-z-index;
    color: @image-preview-close-icon-color;
    font-size: @image-preview-close-icon-size;
    cursor: pointer;

    &:active {
      color: @image-preview-close-icon-active-color;
    }

    &--top-left {
      top: @image-preview-close-icon-margin;
      left: @image-preview-close-icon-margin;
    }

    &--top-right {
      top: @image-preview-close-icon-margin;
      right: @image-preview-close-icon-margin;
    }

    &--bottom-left {
      bottom: @image-preview-close-icon-margin;
      left: @image-preview-close-icon-margin;
    }

    &--bottom-right {
      right: @image-preview-close-icon-margin;
      bottom: @image-preview-close-icon-margin;
    }
  }
}
